<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/01.css">
</head>

<body>
    <div id="app">
        <div class="nav">
            <div class="nav-item">{{navs[0]}}</div>
            <div class="nav-item">{{navs[1]}}</div>
            <div class="nav-item">{{navs[2]}}</div>
            <div class="nav-item">{{navs[3]}}</div>
            <div class="nav-item">{{navs[4]}}</div>
            <div class="nav-item">{{navs[5]}}</div>
            <div class="nav-item">{{navs[6]}}</div>
        </div>
    </div>
</body>
<!-- 引入vue依赖 -->
<script src="https://cn.vuejs.org/js/vue.js"></script>

<!-- 通过vue实例化对象 -->
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            navs: ["新闻", "Hao123", "地图", "视频", "贴吧", "学术", "更多"],
        }
    });
</script>
</html>